package com.xiaoyu.awakening.common.es.mapper;


import lombok.Data;

import java.util.List;

/**
 * 分页查询
 *
 * @author wangxiaoyu
 * @date 2023/2/16 11:22
 * @since v1.0
 */
@Data
public class SearchPage<T> {
    private Integer pageIndex;
    private Integer pageSize;
    private List<T> content;
    private long totalElements = 0;

    public SearchPage(Integer pageIndex, Integer pageSize) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
    }
}
